

local mt = ac.skill['火箭弹幕']
mt.missile_art = [[0777cef7cad2a5c5c39114ff867135e8.mdl]]
mt.temp = '攻击触发'

function mt:on_run()
    local hero = self.owner
    ac.timer(100,30,function()
        local unit = ac.selector('unit'):enemy(hero):range(hero,350):random()
        local damage = hero:get('攻击') * self.data1/100
        if unit then
            hero:launch_missile(unit,self.missile_art,1000,0.15,function()
                hero:create_damage(unit,damage,self)
            end)
        end
    end)
end

local mt = ac.skill['填装弹药']

function mt:on_add()
    local hero = self.owner
    self:gc(hero:add('敏捷成长',self.data3))
end

function mt:on_cooldown()
    local hero = self.owner
    self:cooling()
    hero:add_buff('填装弹药'){
        art = self.art,
        tip = [[攻速提升]],
        time = self.data1,
        on_add = function(buff)
            buff:gc(hero:add('攻击速度',self.data2))
        end
    }
end

